﻿using UnityEngine;
using System.Collections;

public class Perdi : MonoBehaviour {
	public GameObject player;
	float playerInicioX;
	float playerInicioY;
	// Use this for initialization
	void Start ()
	{
		playerInicioX = player.transform.position.x;
		playerInicioY = player.transform.position.y;
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	/*void OnCollisionEnter2D(Collision2D other)
	{
		if(other.gameObject.tag == "Player")
		{
			//Application.LoadLevel("Game Over");
			other.gameObject.transform.position.x = playerInicioX;
			other.gameObject.transform.position.y = playerInicioY;
		}
	}*/
}
